#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "gps.h"
#include "image.h"
#include "map.h"
#include "serialport.h"
#include "terminal.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    SerialPort *sp;
    Terminal *tmn;
    Map *mapobject;

public slots:
    void initialiseMap();
    void initialiseSerialPort();
    void initialiseGPS();
    void on_actionExit_triggered();
    void on_actionConnect_triggered();
    void on_actionDisconnect_triggered();
    void on_sendButton_clicked();
    void terminalLogUpdate(QString datastring);
    void retranslate(QEvent *e);
};

#endif // MAINWINDOW_H
